import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [

   {path:"/",component:() => import('@/view/logo.vue')},
   {path:"/sign",component:() => import('@/view/sign.vue')},

    //首页
    {path:"/home",component:() => import('@/view/Home.vue'),
        children:[
        {path:"index",component:() => import('@/components/index.vue')},
        {path:"shopping",component:() => import('@/components/shopping.vue')},
        {path:"user",component:() => import('@/components/user.vue')},
        {path:"tickets",component:() => import('@/components/tickets.vue')},
    ]},
  ]
})

export default router
